const express = require('express')
const router = express.Router()
const { createComment, getComments, deleteComment } = require('../controller/comments')
const authMiddleware = require('../middleware/index/authMiddleware')


/* 
评论
*/
router.post('/:slug', authMiddleware, createComment)  //获标全局文章
router.get('/:slug', authMiddleware, getComments)  //更新签列表
router.delete('/:slug/:id', authMiddleware, deleteComment)  //删除签列表

// 导出路由模块
module.exports = router